import { BaseService, Service } from '@/cool';

@Service('wechat')
export default class extends BaseService {
	qrcode() {
		return this.request({
			url: '/qrcode',
			params: {
				target: 1
			}
		});
	}
	checkCode(ticket) {
		return this.request({
			url: '/login',
			params: {
				ticket,
				target: 1
			}
		});
	}
}
